package com.tender.controller;

import com.tender.RouterDiscoveryBizService;
import com.tender.SummaryBizService;
import com.tender.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 1、汇总所有 web socket server 上的当前登录人数总数
 * 2、分析不同类型客户端上的当前登录人数
 *
 */
@RestController
@RequestMapping("/api/ws/op")
public class SummaryController {

    @Autowired
    private SummaryBizService summaryBizService;

    @GetMapping("/summary/all")
    public Result<Integer> summaryAll() {
        return Result.success(summaryBizService.summaryAll());
    }

}
